<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2024/11/22 0022
 * Time: 15:03
 */

namespace app\admin\validate;


use think\Validate;

class Borrow extends Validate
{
    protected $rule = [
        'bookid' => 'require',
        'userid' => 'require',
        'back' => 'require',
    ];

    protected $message = [
        'bookid.require' => '图书必须',
        'userid.require' => '借阅人必须',
        'back.require' => '归还时间必须',
    ];
}